function data_to_arry(data,size) {
    var total = 0,totalCount = 0,totalPage = 0,size = size || 1;
    var arry = [];
    for( key in data){
        if(key != "details"){
            totalCount ++;
            var obj = data[key];
            obj.id = key;
            arry.push(obj);
        }
    }
    totalPage = Math.ceil(totalCount/size);
    return {data:arry,totalCount:totalCount,totalPage:totalPage};
}

function getDayNum() {
    var d = new Date();
    var Y = d.getFullYear();
    var M = d.getMonth() + 1;
    var D = d.getDate();
    for (var i = 1; i < M; i++) {
        D += new Date(Y,i,0).getDate();
    }
    return D;
}